package com.whmall.service.crm.enumeration;

/**
 * 客户无开发价值原因
 * @author lidya
 * @date 2022-1-18
 */
public enum CustomerNoDevelopmentValueReasonEnum {
    NO_COOPERATION(1, "无合作"),
    COOPERATIVE_RISK(2, "有合作风险"),
    COMPANY_MERGER(3, "公司合并"),
    COMPANY_CLOSURES(4, "公司倒闭"),
    OTHER_REASON(5, "其它原因");


    private final int value;
    private final String name;

    CustomerNoDevelopmentValueReasonEnum(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public static CustomerNoDevelopmentValueReasonEnum fromValue(int value) {
        for (CustomerNoDevelopmentValueReasonEnum e : values()) {
            if (e.getValue() == value) {
                return e;
            }
        }
        return null;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }


    }

